package com.vavr.checkincms;

import com.vavr.checkincms.common.configuration.OneParkProperties;
import com.vavr.checkincms.common.exception.ExceptionResolver;
import com.vavr.checkincms.configuration.CheckinProperties;
import com.vavr.checkincms.configuration.WechatProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * CheckinServiceApplication
 *
 * @since 2.0.0
 */
@SpringBootApplication
@Import(ExceptionResolver.class)
@EnableConfigurationProperties({CheckinProperties.class, OneParkProperties.class, WechatProperties.class})
@EnableScheduling
@MapperScan({"com.vavr.checkincms.mapper"})
public class CheckinCmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CheckinCmsApplication.class, args);
    }
}
